<link rel="shortcut icon" href="<?php echo '/images/favion.ico?v=1.3';?>">
	  	
<div id="header">
	<div class="block">
	  	<div class="logo">
	  		<a href="/"><img src="__PUBLIC__/images/logo.jpg" /></a>
	  	</div>
	  	<div id="tright">
		  	<ul class="qlink">
		  		<li><a href=""><i class="fa fa-weibo"></i></a></li>
		  		<li><a href=""><i class="fa fa-weixin"></i></a></li>
		  		
		  		<?php 
		  		if($_SESSION['name']){
		  			$logout = U('/Login/Index/logout');
		  			echo '<li class="agrey">'.$_SESSION['name'] .'</li>';
		  			echo '<li class="agrey"><a href="'.$logout.'">退出</a></li>';
		  		}else{
		  		?>
		  		<li class="agrey"><a href="<?php echo U('login');?>">登录</a></li>
		  		<li class="agrey"><a href="<?php echo U('register');?>">注册</a></li>
		  		<?php }?>
		  	</ul>
			<div id="nav">
		  		<ul>
		  			<li ><a href="/">首页</a></li>
		  			<li ><a href="/about" <?php if($webpage=='about'){echo 'class="active"';}?>>关于中路</a></li>
		  			<li >
		  				<a href="/article" <?php if($webpage=='news'){echo 'class="active"';}?>>中路动态</a>
		  				<div class="navchild">
		  					<a href="{:U('/article/article/index/', array('cid'=>1))}">最新动态</a>
		  					<a href="{:U('/article/article/index/', array('cid'=>2))}">大事件</a>
		  				</div>
		  			</li>
		  			<li >
		  				<a href="/service" <?php if($webpage=='service'){echo 'class="active"';}?>>中路服务</a>
		  				<div class="navchild">
		  					<volist name="servicelist" id="d">
		  						<a href="{:U('service',array('id'=>$d['id']))}">{$d['title']}</a>
		  					</volist>
		  				</div>
		  			</li>
		  			<li ><a href="/download" <?php if($webpage=='download'){echo 'class="active"';}?>>软件下载</a></li>
		  			<li ><a href="/contact" <?php if($webpage=='contact'){echo 'class="active"';}?>>联系我们</a></li>
		  		</ul>
		  	</div>
	  	</div>
		<div class="clear"></div>
  	</div>
</div>